package com.scalar.chiptrack.adaptor.events;

import com.scalar.chiptrack.events.SSEventContext;


/**
 * This class is the context for all adaptor events - 
 * which gives complete information about the event.
 * 
 * @author Balaram Putta  
 */
public class AdaptorEventContext extends SSEventContext
{
	// State
	private String mScalarSoftAdaptorName = null;
	private String mScalarSoftAdaptorVersion = null;
	private String mVendorName = null;
	private String mProtocolUsedToRetrieveReport = null;
	private String mReportOrFileNameBeingParsed = null;
	private boolean mIsAdaptorRunManually = false;

	
	/**
	 * @param scalarSoftAdaptorName
	 * @param scalarSoftAdaptorVersion
	 * @param vendorName
	 * @param protocolUsedToRetrieveReport
	 * @param reportOrFileNameBeingParsed
	 * @param isAdaptorRunManually
	 */
	public AdaptorEventContext(	String scalarSoftAdaptorName,
								String scalarSoftAdaptorVersion, 
								String vendorName,
								String protocolUsedToRetrieveReport,
								String reportOrFileNameBeingParsed, 
								boolean isAdaptorRunManually ) 
	{
		super();
		
		mScalarSoftAdaptorName = scalarSoftAdaptorName;
		mScalarSoftAdaptorVersion = scalarSoftAdaptorVersion;
		mVendorName = vendorName;
		mProtocolUsedToRetrieveReport = protocolUsedToRetrieveReport;
		mReportOrFileNameBeingParsed = reportOrFileNameBeingParsed;
		mIsAdaptorRunManually = isAdaptorRunManually;
	}
	
	
	/**
	 * @return Returns the mIsAdaptorRunManually.
	 */
	public boolean isAdaptorRunManually() 
	{
		return mIsAdaptorRunManually;
	}
	
	/**
	 * @param isAdaptorRunManually The mIsAdaptorRunManually to set.
	 */
	public void setIsAdaptorRunManually( boolean isAdaptorRunManually ) 
	{
		mIsAdaptorRunManually = isAdaptorRunManually;
	}
	
	/**
	 * @return Returns the mProtocolUsedToRetrieveReport.
	 */
	public String getProtocolUsedToRetrieveReport() 
	{
		return mProtocolUsedToRetrieveReport;
	}
	
	/**
	 * @param protocolUsedToRetrieveReport The mProtocolUsedToRetrieveReport to set.
	 */
	public void setMProtocolUsedToRetrieveReport( String protocolUsedToRetrieveReport ) 
	{
		mProtocolUsedToRetrieveReport = protocolUsedToRetrieveReport;
	}
	
	/**
	 * @return Returns the mReportOrFileNameBeingParsed.
	 */
	public String getReportOrFileNameBeingParsed() 
	{
		return mReportOrFileNameBeingParsed;
	}
	
	/**
	 * @param reportOrFileNameBeingParsed The mReportOrFileNameBeingParsed to set.
	 */
	public void setMReportOrFileNameBeingParsed( String reportOrFileNameBeingParsed ) 
	{
		mReportOrFileNameBeingParsed = reportOrFileNameBeingParsed;
	}
	
	/**
	 * @return Returns the mScalarSoftAdaptorName.
	 */
	public String getScalarSoftAdaptorName() 
	{
		return mScalarSoftAdaptorName;
	}
	
	/**
	 * @param scalarSoftAdaptorName The mScalarSoftAdaptorName to set.
	 */
	public void setMScalarSoftAdaptorName( String scalarSoftAdaptorName ) 
	{
		mScalarSoftAdaptorName = scalarSoftAdaptorName;
	}
	
	/**
	 * @return Returns the mScalarSoftAdaptorVersion.
	 */
	public String getScalarSoftAdaptorVersion() 
	{
		return mScalarSoftAdaptorVersion;
	}
	
	/**
	 * @param scalarSoftAdaptorVersion The mScalarSoftAdaptorVersion to set.
	 */
	public void setMScalarSoftAdaptorVersion( String scalarSoftAdaptorVersion ) 
	{
		mScalarSoftAdaptorVersion = scalarSoftAdaptorVersion;
	}
	
	/**
	 * @return Returns the mVendorName.
	 */
	public String getVendorName() 
	{
		return mVendorName;
	}
	
	/**
	 * @param vendorName The mVendorName to set.
	 */
	public void setVendorName( String vendorName ) 
	{
		mVendorName = vendorName;
	}
	
}
